$(function (){

    $("#image-upload-btn").on("click", function(){
        $.ajax({
            processData: false,
            contentType: false,
            cache: false,
            type: "post",
            url: "../upload/watermarkImg",
            data: new FormData($("#image-box")[0]),
            async: false,
            dataType: "json",
            success: function (result) {
                console.log(result);
            }
        });
    });

});